package com.vhall.component.entity.interactive.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author yongzheng.xu
 * @date 2021/5/10
 */
@Data
public class QuestionCreateReqVO implements Serializable {

    private static final long serialVersionUID = -3344090741751371885L;


    @NotNull(message = "参数错误")
    @ParamName("account_id")
    private Integer accountId;


    @NotBlank(message = "参数错误")
    @ParamName("app_id")
    private String appId;

    /**
     * 标题
     */
    @NotBlank(message = "参数错误")
    @ParamName("title")
    private String title;

    /**
     * 问卷 id， 修改关联房间时要传，新增时可以不用传
     */
    @NotNull(message = "参数错误")
    @ParamName("question_id")
    private Integer questionId;


    @ParamName("room_id")
    private String roomId;

    @ParamName("cover")
    private String cover;

    @ParamName("extend")
    private String extend;

    /**
     * 描述
     */
    @ParamName("description")
    private String description;

    /**
     * 是否公共问卷，1是0否，默认是
     */
    @ParamName("is_public")
    private Integer isPublic = 1;

    /**
     * 封面
     */
    @ParamName("img_url")
    private String imgUrl;

}
